package com.op.parcel.gen;

/**
 * 代码生成器
 *
 * @author xuan🐽
 */
public class CodeGenerator {

	public static String PACKAGE_NAME = "com.op.parcel.manage.modules.sys";
	public static String PACKAGE_DIR = "/op-mnage/src/main/java/";
	public static String[] TABLE_PREFIX = {"sys_"};
	public static String[] INCLUDE_TABLES = {"sys_user","sys_permission", "sys_role"};
	public static String[] EXCLUDE_TABLES = {};
	public static Boolean HAS_SUPER_ENTITY = Boolean.TRUE;
	public static String[] SUPER_ENTITY_COLUNMS = {"id", "create_time", "create_by", "update_time", "update_by", "del_flag"};

	/**
	 * RUN THIS
	 */
	public static void main(String[] args) {
		Generator generator = new Generator();
		generator.setPackageName(PACKAGE_NAME);
		generator.setPackageDir(PACKAGE_DIR);
		generator.setTablePrefix(TABLE_PREFIX);
		generator.setIncludeTables(INCLUDE_TABLES);
		generator.setExcludeTables(EXCLUDE_TABLES);
		generator.setHasSuperEntity(HAS_SUPER_ENTITY);
		generator.setSuperEntityColumns(SUPER_ENTITY_COLUNMS);
		generator.run();
	}

}
